package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目业务对象 sys_project
 *
 * @author ruoyi
 * @date 2022-04-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("项目业务对象")
public class SysProjectBo extends BaseEntity {

    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id", required = true)
    @NotNull(message = "项目id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 项目名称
     */
    @ApiModelProperty(value = "项目名称", required = true)
    @NotBlank(message = "项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 项目类型
     */
    @ApiModelProperty(value = "项目类型", required = true)
    @NotBlank(message = "项目类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 项目状态（0进行中 1 已完成）
     */
    @ApiModelProperty(value = "项目状态（0进行中 1 已完成）", required = true)
    @NotBlank(message = "项目状态（0进行中 1 已完成）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = true)
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
